﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="Application.aspx.cs" Inherits="Web.Pages.Application" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderControl" runat="server">
    <%@ Register Src="../UserControls/ucAccessControlToolbar.ascx" TagName="AccessControlToolbar" TagPrefix="Toolbar" %>
    <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPopupControl" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
    <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPanel" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
    <%@ Register Src="~/Modal/ApplicationModal.ascx" TagPrefix="Toolbar" TagName="ApplicationModal" %>
    <%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
    <%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
    <script type="text/javascript">
        // <![CDATA[
        // ]]> 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentControl" runat="server">
    <div>
        <div class="header">
            <Toolbar:AccessControlToolbar ID="AccessToolbar" runat="server" />
        </div>
        <div class="content">
            <table>
                <tr>
                    <td class="right" style="white-space: nowrap">
                        <dx:ASPxLabel ID="lbApplicationNo" CssClass="label" runat="server" Text='<%$ Resources:Resource, ApplicationNo %>'></dx:ASPxLabel>
                        :</td>
                    <td class="left">
                        <dx:ASPxTextBox ID="txApplicationNo" CssClass="textbox" runat="server"></dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="right" style="white-space: nowrap">
                        <dx:ASPxLabel ID="lbApplicationName" CssClass="label" runat="server" Text='<%$ Resources:Resource, ApplicationName %>'></dx:ASPxLabel>
                        :</td>
                    <td class="left">
                        <dx:ASPxTextBox ID="txApplicationName" CssClass="textbox" runat="server"></dx:ASPxTextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="result">
            <dx:ASPxGridView ID="grvResult" ClientInstanceName="grvResult"
                runat="server" KeyFieldName="APPLNO" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <dx:GridViewDataColumn Caption="Check" VisibleIndex="0">
                        <Settings AllowSort="False"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxCheckBox ID="chk" OnCheckedChanged="chk_Checked" AutoPostBack="True"
                                ClientInstanceName="chk" ToolTip="<%$ Resources:Resource, SelectAllRows %>" runat="server">
                            </dx:ASPxCheckBox>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxCheckBox ID="chk" ClientInstanceName="chk" runat="server"></dx:ASPxCheckBox>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="No" VisibleIndex="1">
                        <Settings AllowSort="False"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbNo" runat="server" Text='<%$ Resources:Resource, No %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxLabel ID="lbNo" runat="server"></dx:ASPxLabel>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Application No" FieldName="APPLNO" VisibleIndex="2">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbApplicationNo" runat="server" Text='<%$ Resources:Resource, ApplicationNo %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Application Name" FieldName="APPLNAME" VisibleIndex="3">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbApplicationName" runat="server" Text='<%$ Resources:Resource, ApplicationName %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Description" FieldName="DESCRIPTION" VisibleIndex="4">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbDescription" runat="server" Text='<%$ Resources:Resource, Description %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="URL" FieldName="URL" VisibleIndex="5">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbUrl" runat="server" Text='<%$ Resources:Resource, URL %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Mobile" FieldName="MOBILEURL" VisibleIndex="6">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbMobileUrl" runat="server" Text='<%$ Resources:Resource, Mobile %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Remark" FieldName="REMARK" VisibleIndex="7">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbRemark" runat="server" Text='<%$ Resources:Resource, Remark %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Status" FieldName="STATUS" VisibleIndex="8">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbStatus" runat="server" Text='<%$ Resources:Resource, Status %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn SortOrder="Ascending" Caption="Private" FieldName="PRIVATE_FLAG" VisibleIndex="9">
                        <Settings SortMode="Value" AllowSort="True"></Settings>
                        <HeaderTemplate>
                            <dx:ASPxLabel ID="lbPrivate" runat="server" Text='<%$ Resources:Resource, Private %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                </Columns>
            </dx:ASPxGridView>
        </div>
        <div style="display: block;">
            <dx:ASPxPopupControl ID="pcModal" CssClass="popup" runat="server" CloseAction="CloseButton" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcModal"
                HeaderText="" AllowDragging="True" PopupAnimationType="None" EnableViewState="False">
                <ContentCollection>
                    <dx:PopupControlContentControl CssClass="popup" ID="PopupControlContentControl1" runat="server">
                        <dx:ASPxPanel ID="palModal" CssClass="popup" runat="server" DefaultButton="btOK">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent1" runat="server">
                                    <Toolbar:ApplicationModal runat="server" ID="ApplicationModal" />
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </div>
    </div>
</asp:Content>
